package org.star.config;

import com.netflix.loadbalancer.IRule;
import com.netflix.loadbalancer.RoundRobinRule;
import org.springframework.context.annotation.Bean;
import org.springframework.context.annotation.Configuration;
import org.star.extend.MyRandomRule10000;

/**
 * @Author : 一叶浮萍归大海
 * @Date: 2024/1/3 8:40
 * @Description:
 */
@Configuration
public class MyRibbonConfig10000 {

    /**
     * 注意事项：方法名一定要叫iRule
     * @return
     */
    @Bean
    public IRule iRule() {
        // return new RandomRule();
        return new MyRandomRule10000();
        // return new RoundRobinRule();
    }

}
